﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Arles.src.view.controls
{
    public class GListBoxItem
    {
        string text;
        int imageIndex;
        bool undoItem;
        int itemIndex;

        #region Properties
        public bool UndoItem
        {
            get { return undoItem; }
            set { undoItem = value; }
        }

        public string Text
        {
            get { return text; }
            set { text = value; }
        }

        public int ImageIndex
        {
            get { return imageIndex; }
            set { imageIndex = value; }
        }

        public int ItemIndex
        {
            get { return itemIndex; }
            set { itemIndex = value; }
        }

        #endregion
        public GListBoxItem(string text, int imageIndex, bool undoItem, int itemIndex)
        {
            this.text = text;
            this.imageIndex = imageIndex;
            this.undoItem = undoItem;
            this.itemIndex = itemIndex;
        }

        public GListBoxItem(string t, bool black, int itemIndex) : this(t, 0, black, itemIndex) { }

        public override string ToString()
        {
            return text;
        }
    }
}
